#ifndef GRAPHIC_H
#define GRAPHIC_H
#include "vec2.h"
#include "vec4.h"
#include "SSet.h"
#include "DrawList.h"


#define MAX_GRAPHICS_NUM 50
class Graphic: public DrawList
{
public:
	Graphic();
	void Clear();
	void AddGraphic(vec2*p,int num,vec4 ncolor);
	virtual void PureDraw();

	vec2 GetMinBB(){return minBB;}
	vec2 GetMaxBB(){return maxBB;}
private:
	SSet<vec2> dots;
	vec4 color[MAX_GRAPHICS_NUM];
	vec2 minBB,maxBB;

};

#endif